function login() {
	new Ext.Window({
		bbar: ['->', {
				handler: function() {
					submit(function() {
						close();
						applications();
					});
				},
				text: '确定'
			}, '-', {
				handler: reset,
				text: '重置'
			}, '-', {
				handler: function() {
					close();
					register();
				},
				text: '注册'
			}, '-', {
				text: '忘记密码'
		}],
		bodyStyle: 'padding: 20px 20px 20px 25px',
		closable: false,
		defaults: { baseCls: 'x-plain' },
		items: [
			new Ext.form.FormPanel({
				baseCls: 'x-plain',
				bodyStyle: 'padding: 0 0 10px 0',
				defaults: { allowBlank: false, vtype: 'alphanum', width: 225 },
				defaultType: 'textfield',
				items: [
					{ name: 'j_username', fieldLabel: '用户名*' },
					{ name: 'j_password', inputType: 'password', fieldLabel: '密&nbsp;&nbsp;&nbsp;码*' }
				],
				labelAlign: 'top',
				labelWidth: 40,
				url: 'j_acegi_security_check'
			}),
			new Ext.Panel({ html: '带有 * 记号的为必填项' })
		],
		title: '用户登录',
		width: 305
	}).show();
}